package com.project.util;

import java.util.List;
import java.util.Map;

/**
 * 普通条件分页entity类
 *
 * @author Leo高洋
 * @create 2023-01-17 0:35
 */
public class PageBean {
    private int pageNum; // 第几页
    private int pageSize; // 每页记录数
    private int start;  // 起始页
    private String query; // 查询参数
    private String query2; // 查询参数
    private String query3; // 查询参数

    public PageBean() {
    }

    public PageBean(int pageNum, int pageSize, String query,String query2,String query3) {
        this.pageNum = pageNum;
        this.pageSize = pageSize;
        this.query = query;
        this.query2 = query2;
        this.query3 = query3;
    }

    public PageBean(int pageNum, int pageSize, String query) {
        this.pageNum = pageNum;
        this.pageSize = pageSize;
        this.query = query;
    }

    public PageBean(int pageNum, int pageSize) {
        super();
        this.pageNum = pageNum;
        this.pageSize = pageSize;
    }

    public int getPageNum() {
        return pageNum;
    }

    public void setPageNum(int pageNum) {
        this.pageNum = pageNum;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getStart() {
        return (pageNum - 1) * pageSize;
    }

    public String getQuery() {
        return query;
    }

    public void setQuery(String query) {
        this.query = query;
    }

    public String getQuery2() {
        return query2;
    }

    public void setQuery2(String query2) {
        this.query2 = query2;
    }

    public String getQuery3() {
        return query3;
    }

    public void setQuery3(String query3) {
        this.query3 = query3;
    }
}
